<div class="row"> <h3 class="page-header">教学实验统计</h3></div>
<div class="row">
    <div class="panel panel-default">
        <div class="panel-body">
          <form action='{:U("Jxsygl/jxsytj")}' class="form-inline text-right fr m-b-5">
                查询：<select class="form-control mr20 w150" name="select">
                            <option value="sy_course" <eq name='Think.get.select' value="sy_course">selected</eq>>课程</option>
                            <option value="sy_xm" <eq name='Think.get.select' value="sy_xm">selected</eq>>项目</option>
                        </select>
                <button class="btn btn-primary" type="submit">搜索</button>
            </form>
            <div class="table-responsive">
                <table class="table table-striped table-bordered table-hover" id="course">
                    <thead>
                    <tr>
                        <th width="60">序号</th>
                        <th>实验室</th>
                        <th>实验课程</th>
                        <th>老师名称</th>
                        <th>班级</th>
                        <th>使用课节</th>
                    </tr>
                    </thead>
                    <tbody>
                        <empty name="list">
                            <tr><td colspan="6" align="center">暂无信息</td></tr>
                        </empty>
                        <volist name="list" id="list">
                            <tr>
                                <td>{$i}</td>
                                <td>{$list.sys}</td>
                                <td>{$list.sy_course}</td>
                                <td>{$list.teacher}</td>
                                <td>{$list.class}</td>    
                                <td>第{$list.jc}节课</td>        
                             </tr>
                         </volist>
                    </tbody>
                </table>
                 <table class="table table-striped table-bordered table-hover" id="syxm" style="display:none">
                    <thead>
                    <tr>
                        <th width="60">序号</th>
                        <th>实验项目名称</th>
                        <th>使用课节</th>
                        <th>老师名称</th>
                        <th>班级</th>
                        <th>人数</th>
                    </tr>
                    </thead>
                    <tbody>
                        <empty name="list_xm">
                            <tr><td colspan="6" align="center">暂无信息</td></tr>
                        </empty>
                        <volist name="list_xm" id="list_xm">
                            <tr>
                                <td>{$i}</td>
                                <td>{$list_xm.sy_xm}</td>
                                <td>第{$list_xm.jc}节课</td>    
                                <td>{$list_xm.teacher}</td>
                                <td>{$list_xm.class}</td>    
                                <td>{$list_xm.num}</td>        
                             </tr>
                         </volist>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    function GetQueryString(name)
    {
         var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
         var r = window.location.search.substr(1).match(reg);//search,查询？后面的参数，并匹配正则
         if(r!=null)return  unescape(r[2]); return null;
    }
  
    if(GetQueryString("select")=='sy_xm'){
           $('#syxm').show();
           $('#course').hide();
    }
</script>